package com.bw.wxy.widget;

import android.content.Context;
import android.graphics.Color;

import androidx.annotation.Nullable;

import com.yanyusong.y_divideritemdecoration.Y_Divider;
import com.yanyusong.y_divideritemdecoration.Y_DividerBuilder;
import com.yanyusong.y_divideritemdecoration.Y_DividerItemDecoration;

public class PartingLine extends Y_DividerItemDecoration {
    Y_Divider y_divider;

    public PartingLine(Context context){
        super(context);
    }

    @Nullable
    @Override
    public Y_Divider getDivider(int itemPosition) {
        switch (itemPosition%2){
            case 0:
                y_divider=new Y_DividerBuilder().setBottomSideLine(true, Color.BLACK,1f,0f,0f)
                        .create();
                break;
        }
        return y_divider;
    }
}

